home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
hity wydania
/
Ubuntu 9.10 PL
/
karmelkowy-koliberek-desktop-9.10-i386-PL.iso
/
casper
/
filesystem.squashfs
/
usr
/
share
/
checkbox
/
patches
/
0.5
< prev
next >
Wrap
Text File
|
2009-11-05
|
604b
|
31 lines
#!/usr/bin/python
import sys
from StringIO import StringIO
def Config(filename):
globals = {}
module = "/usr/share/checkbox/install/config"
exec open(module) in globals
config = globals["Config"]()
config.read(filename)
return config
def main(args):
config_file = "/etc/checkbox.d/%s.ini" % args[0]
config = Config(config_file)
if config.has_section("checkbox/plugins"):
config.set("checkbox/plugins", "blacklist", "backend_manager")
# Rename options
file = StringIO()
config.write(file)
if __name__ == "__main__":
main(sys.argv[1:])